<div class="card border-info m-3">
  <h5 class="card-header bg-info text-white">为角色<span style="color: red;">{{sysRoledomain.serMemo}}</span>分配菜单</h5>
  <div class="card-body">
    <div class="container-fluid">
      <div class="row">
        <div class="col-6">
          <p-tree [value]="allMenuTreeNode"
                  selectionMode="single"
                  [(selection)]="selectedMenu"
                  (onNodeSelect)="func.nodeSelect($event)"></p-tree>
        </div>
        <div class="col-6" *ngIf="selectedMenu">
          <p-checkbox name="menu" [value]="selectedMenu.data" [(ngModel)]="selectedMenuUuids"></p-checkbox> 显示菜单 - ({{currentMenu?.label}})
            <hr>
            <div  *ngIf="allPermissionUuid && allPermissionUuid.length > 0">
               <p-checkbox name="allPermission" value="all" [(ngModel)]="selectAllPermission"
                           (onChange)="func.selectAllPermissionChange($event)"
               ></p-checkbox> 全选
            </div>
            <div  *ngFor="let item of allPermissionUuid">
                <p-checkbox name="permission" [value]="item.uuid"
                            (onChange)="func.selectPermissionChange($event)"
                            [(ngModel)]="selectPermissionUuid"></p-checkbox> ({{item?.serMemo}})
            </div>
          <div class="text-center mt-5">
            <button type="button" class="btn btn-outline-primary" (click)="func.saveRoleMenu($event)">保存修改</button>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
